package org.datascooter.bundle;

/**
 * Purposed for defining an entity parts - independently mapped entities which in some contexts may be treaten as parts of other entities
 * 
 * @author nemo
 * 
 */
public class EntityPart {

	private String entity;
	private String joinAttribute;
	private boolean joinFromChild;

	public EntityPart(String entityName, String joinAttribute, boolean joinFromChild) {
		this.entity = entityName;
		this.joinAttribute = joinAttribute;
		this.joinFromChild = joinFromChild;
	}

	public String getEntity() {
		return entity;
	}

	public String getJoinAttribute() {
		return joinAttribute;
	}

	public boolean isJoinFromChild() {
		return joinFromChild;
	}
}
